const path = require('path')
path.join('/a', '/b/c', '../', './d', 'e')